home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 December / DPPCPRO1205.ISO / PCPro.exe / PCPro.dxr / Parent scripts_5_file handlers.ls < prev    next >
Encoding:
Text File  |  2005-05-20  |  346 b   |  18 lines

  1. on getVolume
  2.   splitPosn = offset("\", the moviePath)
  3.   volumeName = (the moviePath).char[1..splitPosn]
  4.   return volumeName
  5. end
  6.  
  7. on fileExists path_file
  8.   fileTest = new(xtra("fileio"))
  9.   openfile(fileTest, path_file, 1)
  10.   fileResult = status(fileTest)
  11.   closeFile(fileTest)
  12.   if fileResult = 0 then
  13.     return 1
  14.   else
  15.     return 0
  16.   end if
  17. end
  18.